package cn.edu.zafu.bigdata.LiJuan;

public class Book {
    public String title;
    public String author;
    public double price;

    // 带参构造器，初始化所有字段
    public Book(String title, String author, double price) {
        this.title = title;
        this.author = author;
        this.price = price;
    }

    // 重写 toString 方法，返回书籍的详细信息
    @Override
    public String toString() {
        return "Book[title=" + title + ", author=" + author + ", price=" + price + "]";
    }
}

